package auto.app.service;

import auto.app.controller.from.AccountPage;
import auto.app.controller.from.AccountRegisterFrom;
import auto.app.controller.from.account.GrantRoleAddFrom;
import auto.app.controller.info.AccountPageInfo;
import auto.app.exetion.AccountExetion.AccountSelect;
import auto.app.exetion.MainExection;
import auto.app.model.Account;
import auto.app.util.Result;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杨森
 * @since 2022-07-08
 */
public interface AccountService extends IService<Account> {

    public Boolean register(AccountRegisterFrom accountRegisterFrom) throws AccountSelect;

    public AccountPageInfo findAllAccount(AccountPage accountPage);

    public Boolean grantRoleAdd(GrantRoleAddFrom grantRoleAddFrom) throws MainExection;

}
